package a;

import a.Handler.FieldInjectHandler;
import a.Handler.MethodInjectHandler;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ServiceLoader;

public class InjectMethod {
    public static void execute(Object o,Class<?> clazz,BeanFactory factory){
        InjectHandler filed=new FieldInjectHandler();
        InjectHandler method=new MethodInjectHandler();
        try {
            filed.execute(o,clazz,factory);
            method.execute(o,clazz,factory);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
